<?php include('settings.php'); ?>
<?php include($folder.'/permanent_header.php'); ?>
<?php
header('Content-type: application/octet-stream');
$files=glob($folder.'/picture_main/'.$_GET['id'].'.*');
header('Content-Disposition:inline; filename="'.basename($files[0]).'"');
readfile($files[0]);
?>